//
//  YTBleManager.h
//  YUNT
//
//  Created by 梁炜东 on 2017/11/19.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>

typedef void (^BleManagerBlock)(NSMutableArray *devices);

@protocol YTBleManagerDelegate <NSObject>
-(void)delegateBleData:(NSMutableArray *)data;
@end

@interface YTBleManager : NSObject
+ (YTBleManager *)shareModel;
-(void)reloadBleListBlock:(BleManagerBlock)block;
//向蓝牙发送数据
-(void)sendBleData:(NSData *)data Block:(sendBlock)block;
-(void)connectPeripheral:(CBPeripheral *)peripheral;

@property(nonatomic, weak)id<YTBleManagerDelegate>delegate;
@end
